import { hookI18n } from "@/hooks/hookI18n";
import { HOME_URL, HOME_NAME } from "@/config/modules/router";

import { Sunny } from "@element-plus/icons-vue";

const { t } = hookI18n();

/** 主页 */
const home = {
    path: HOME_URL,
    name: HOME_NAME,
    component: "/home/index",
    meta: {
        title: t("router.home"),
        icon: "HomeFilled",
        isLink: "",
        isHide: false,
        isFull: false,
        isLock: true,
        isKeepAlive: true,
    },
};

/** 表盘 */
const dashboard = {
    name: "dashboard",
    path: "/dashboard",
    component: "/dashboard/index",
    meta: {
        title: t("router.dashboard"),
        icon: "Key",
        isLink: "",
        isHide: false,
        isFull: false,
        isLock: false,
        isKeepAlive: false,
    },
};

/** 图表 */
const charts = {
    name: "charts",
    path: "/charts",
    component: "/charts/index",
    meta: {
        title: t("router.charts"),
        icon: "Histogram",
        isLink: "",
        isHide: false,
        isFull: false,
        isLock: false,
        isKeepAlive: false,
    },
};

/** 大屏 */
const dataScreen = {
    name: "dataScreen",
    path: "/dataScreen",
    component: "/dataScreen/index",
    meta: {
        title: t("router.dataScreen"),
        icon: "DataBoard",
        isLink: "",
        isHide: false,
        isFull: true,
        isLock: false,
        isKeepAlive: false,
    },
};

/** 地图 */
const map = {
    name: "map",
    path: "/map",
    redirect: "/map/cesium",
    meta: {
        title: t("router.map"),
        icon: "MapLocation",
        isLink: "",
        isHide: false,
        isFull: false,
        isLock: false,
        isKeepAlive: true,
    },
    children: [
        {
            path: "/map/cesium",
            name: "map cesium",
            component: "/map/cesium/index",
            meta: {
                title: t("router.mapCesium"),
                icon: "Histogram",
                isLink: "",
                isHide: false,
                isFull: false,
                isLock: false,
                isKeepAlive: true,
            },
        },
        {
            path: "/map/openlayers",
            name: "map openlayers",
            component: "/map/openLayers/index",
            meta: {
                title: t("router.mapOpenlayers"),
                icon: "Histogram",
                isLink: "",
                isHide: false,
                isFull: false,
                isLock: false,
                isKeepAlive: true,
            },
        },
    ],
};

/** 系统 */
const system = {
    name: "system",
    path: "/system",
    component: "",
    meta: {
        title: t("router.system"),
        icon: "Setting",
        isLink: "",
        isHide: false,
        isFull: false,
        isLock: false,
        isKeepAlive: true,
    },
    children: [
        {
            name: "system account",
            path: "/system/account",
            component: "/system/account/index",
            meta: {
                title: t("router.account"),
                icon: "sunny",
                isLink: "",
                isHide: false,
                isFull: false,
                isLock: false,
                isKeepAlive: true,
            },
        },
        {
            name: "system department",
            path: "/system/department",
            component: "/system/department/index",
            meta: {
                title: t("router.department"),
                icon: "edit",
                isLink: "",
                isHide: false,
                isFull: false,
                isLock: false,
                isKeepAlive: true,
            },
        },
    ],
};
/*
    |   |--dictionaryManage     字典管理
    |   |--menuMange            菜单管理
    |   |--roleManage           角色管理
    |   |--systemLog            系统日志
    |   |--scheduledTasks       定时任务

*/

export default {
    code: 200,
    data: [
        home,
        dataScreen,
        // dashboard,
        // charts,
        map,
        // system,
    ],
    msg: "成功",
};
